package com.example.graduation.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.graduation.entity.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.graduation.entity.Evaluate;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xyc
 * @since 2022-02-11
 */
public interface AddressService extends IService<Address> {


    /**
     * 新增或者修改用户收获地址
     *
     * @param address
     * @param token
     * @return
     */
    public Address updateAddress(Address address, String token);


    /**
     * 查询自己的收获地址
     *
     * @param token
     * @return
     */
    public Page<Address> findAddress(String token, Integer page, Integer size);

}
